<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'milk-sales-form',
	'enableAjaxValidation'=>false,
)); ?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php // echo $form->errorSummary($model); ?>

<?php echo $this->renderPartial('application.views.milkSales._tabularform', array('form'=>$form, 'modelMilkSales'=>$modelMilkSales, 'startDate'=>$startDate, 'endDate'=>$endDate)); ?>

<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
		'buttonType'=>'submit',
		'type'=>'primary',
		'label'=>$model->isNewRecord ? 'Create' : 'Save',
	)); ?>
</div>

<?php $this->endWidget(); ?>
